function  authorization (str) {
    let item = window.localStorage.getItem("moduleList");
    // console.info(JSON.parse(item))

    return JSON.parse(item).filter(item => str == item.perms).length > 0;
    
}
function returnUser() {
    let users = window.localStorage.getItem("users");
    let data = JSON.parse(users);
    if(data!=null || data!=''){
        return data.companyId=='0' ;
    }else{
        return "网络错误,请重新登入";
    }

}